package com.wujian.love.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: OrderProductDto
 * @description:
 * @author: wujian
 * @Date: 2020-06-22 11:31
 **/
@Data
public class OrderProductDto {

    @NotNull(message = "商品选择不能为空")
    private Integer productId;

    @Min(value = 0,message = "商品购买数量不能为0")
    private int number;
}
